package jihe;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.zip.CheckedOutputStream;

public class test {
    public static void main(String[] args) {
        ArrayList<String> list =new ArrayList<>();//定义集合
        //添加元素
        int q=0;
        while(q<3)
        {
            list.add("aaa");
            q++;
        }
        //删除
        list.remove("bbb");
        //修改元素
        list.set(0,"eee");
        System.out.println(list);
        //查看元素
        System.out.println(list.get(2));
        //遍历循环
                for(int i=0;i<list.size();i++)
                {
                    System.out.println(list.get(i));
                }
        System.out.println(list);
        System.out.println(5+"c"+2);
        int s[][]=new int[][]{
                {1,2,3},
                {4,5,6},
        };
        for(int i:s[1])
        System.out.println(i);
        enum MyEnum {
            ENUM_VALUE_1, ENUM_VALUE_2, ENUM_VALUE_3;
        }

        /*public class Main {
            public static void main(String[] args) {
                MyEnum[] enumArray = MyEnum.values();
                for (MyEnum enumValue : enumArray) {
                    System.out.println(enumValue);
                }
            }
        }*/
        for(String str:list){
            System.out.println(str);

        }
        //System.out.println("s1"+ Arrays.toString(s1));
    }

}
